package cn.zn.modules.pz.cur.service.impl;

import cn.zn.modules.pz.cur.dao.TpRepayMapper;
import cn.zn.modules.pz.cur.entity.TpRepay;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.modules.pz.cur.service.TpRepayService;

@Service
public class TpRepayServiceImpl extends ServiceImpl<TpRepayMapper, TpRepay> implements TpRepayService {

    @Override
    public TpRepay findByMainId(String mainId) {
        QueryWrapper<TpRepay> queryWrapper = Wrappers.query();
        queryWrapper.eq("TP_MAIN_ID_", mainId);
        return this.getOne(queryWrapper);
    }
}


